<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./lib/mui/js/vue.min.js"></script>
</head>

<body>
  <div id="app">
    <mycom></mycom>
  </div>

  <template id="my">
      <div>
        <h1>haha</h1>
        <h2>hehe</h2>
      </div>
  </template>

  <script>
    Vue.component('mycom',{
      template:'#my'
    })


    var vm = new Vue({
      el: '#app',
      data: {},
      methods: {}
    });
  </script>
</body>

</html>